import { request } from '@/utils/hsj/service/index'
import { parseStrEmpty } from '@/utils/ruoyi'

// 查询工单日志列表
export function listLogInfo(query) {
  return request({
    url: '/system/workOrderLog/list',
    method: 'get',
    params: query,
  })
}

// 查询工单日志详细
export function getLogInfo(workOrderLogId) {
  return request({
    url: '/system/workOrderLog/' + parseStrEmpty(workOrderLogId),
    method: 'get',
  })
}

// 新增工单日志
export function addLogInfo(data) {
  return request({
    url: '/system/workOrderLog',
    method: 'post',
    data: data,
  })
}

// 修改工单日志
export function updateLogInfo(data) {
  return request({
    url: '/system/workOrderLog',
    method: 'put',
    data: data,
  })
}

// 修改工单日志
export function logStatus(data) {
  return request({
    url: '/system/workOrderLog/logStatus',
    method: 'put',
    data: data,
  })
}

// 删除工单日志
export function delLogInfo(workOrderLogId) {
  return request({
    url: '/system/workOrderLog/' + workOrderLogId,
    method: 'delete',
  })
}


